<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>ログイン</title>
<style type="text/css">
body {
	background-color: #8FBC8F;
}

.center {
	text-align: center;
}

h1 {
	margin-top: 60px;
	width: 30%;
	background-color: #00BFFF;
}
</style>

<script type="text/javascript">
	function submitForm(form, buttonName) {

		if (buttonName == "roguin") {
			form.action = "login";
			form.submit();
		} else {
			location.href = "jsp/user.jsp";
		}

	}
</script>

</head>
<body>
	<div class="center">
		<h1>商品管理システム(仮)</h1>
	</div>
	<br><br><br> <center>
				<form action="login" method="post">
					<table>
						<tr>
							<td>ログイン ID</td>
							<td><input type="text" name="rid" size="30" value="00000002" />
							</td>
						</tr>
						<tr>
							<td>パスワード</td>
							<td><input type="password" name="pwd" size="30" value="111" />
							</td>
						</tr>
					</table>
					<br><br> <input type="button" name="roguin" value="ログイン"
							onclick="submitForm(this.form, 'roguin')"> <input
								type="button" name="register" value="ユーザー登録"
								onclick="submitForm(this.form, 'register')">
				</form>

				</center>


				</div>
</body>
</html>